<?php
/**
 * @author: HeLong
 * @date: 2021-08-09 9:48
 */

namespace app\migrations;


/**
 *
 * @property-read string $options
 */
class BaseMigration extends \yii\db\Migration
{
    /**
     * @return string
     */
    protected function getOptions()
    {
        if ($this->db->getDriverName() == 'mysql') {
            return 'CHARACTER SET utf8 COLLATE utf8_unicode_ci ENGINE=InnoDB';
        }
        return '';
    }
}